package com.class05.service.impl;

import com.class05.service.Calculator;
import org.springframework.stereotype.Service;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/10/31 19:43
 */
@Service
public class CalculatorPureImpl implements Calculator {

    public int add(int i, int j) {
        int result = i + j;
//        System.out.println(result);
        return result;
    }


    public int sub(int i, int j) {
        int result = i - j;
        return result;
    }


    public int mul(int i, int j) {
        int result = i * j;
        return result;
    }


    public int div(int i, int j) {
        int result = i / j;
        return result;
    }
}
